{php include pubTemplate("header")}
<div class="container">


    <nav aria-label="breadcrumb" class="position-relative">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
            <li class="breadcrumb-item active" aria-current="page">{$TS_APP['appname']}</li>
        </ol>

        <a class="btn btn-sm btn-info position-absolute" style="z-index: 100;top:6px;right:6px;" href="{tsUrl('group','create')}">创建小组</a>

    </nav>





<div class="row">

<div class="col-md-8">



    <div class="card">
        <div class="card-body">


            <div class="mb-3">
                <a class="btn btn-sm {if $cateid==0}btn-outline-secondary{else}text-secondary{/if}" href="{tsUrl('group')}">全部</a>
                {loop $arrGroupCate $key $item}
                <a class="btn btn-sm {if $cateid==$item['cateid']}btn-outline-secondary{else}text-secondary{/if}" href="{tsUrl('group','index',array('cateid'=>$item['cateid']))}">{$item['catename']}</a>
                {/loop}

            </div>


            <hr />


            <div class="row">
                {loop $arrGroup $key $item}
                <div class="col-md-6">

                    <div class="sub-item">
                        <div class="pic">
                            <a href="{tsUrl('group','show',array('id'=>$item[groupid]))}">
                                <img class="rounded" src="{$item['photo_url']}" alt="{$item[groupname]}" />
                            </a>

                        </div>
                        <div class="info">
                            <a href="{tsUrl('group','show',array('id'=>$item[groupid]))}">{$item[groupname]}</a>
                            <small class="text-black-50">{$item[count_user]}人加入</small>
                            <p class="content">{$item[groupdesc]}</p>
                        </div>
                    </div>

                </div>
                {/loop}
            </div>




            <div class="mt-3">{$pageUrl}</div>




</div>
</div>
</div>

<div class="col-md-4">



    <div class="card">
        <div class="card-header">最新创建小组</div>
        <div class="card-body">
            <div class="commlist">
                <ul>
                    {loop $arrNewGroup $key $item}
                   <li>
                       <a href="{tsUrl('group','show',array('id'=>$item[groupid]))}">{$item[groupname]}</a> <span class="c9 fs12">({$item[count_user]}成员)</span>
                   </li>
                    {/loop}
                </ul>
            </div>

        </div>
    </div>

<!--广告位-->
{php doAction('gobad','300')}

</div>
</div>
</div>
{php include pubTemplate("footer")}